package com.systemCapacity.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.systemCapacity.entity.Enum.AttributeType;
import com.systemCapacity.entity.Enum.AttributeValueType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 模型属性以及装备属性
 * @author renjie
 * @since 2023.6.16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("attribute")
public class Attribute implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "attributeId")
    private String attributeId;

    @NotBlank(message = "属性名称不能为空")
    private String attributeName;

    private AttributeType attributeType;

    private String templateId;

    private String equipmentId;

    private String equipmentName;

    private String deviceId;

    private AttributeValueType attributeValueType;

    private String unit;

    private String value;

    private String pid;

}
